package com.csun.cmny.provider.model.dto.phone;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-11-27 17:04
 * @Description:
 */
@Data
public class PhoneZoneBindDto {

    /**
     * 电话机防区Id
     */
    @NotNull(message = "{phone.zone.id.null}")
    private Long id;

    /**
     * 绑定方式 0-自定义 1-老人 2-床位 3-房间
     */
    @NotNull(message = "{phone.zone.bind.type.null}")
    @Range(min = 0, max = 3, message = "{phone.zone.bind.type.range.error}")
    private Integer bindType;

    /**
     * 床位Id
     */
    private Integer bedId;

    /**
     * 房间Id
     */
    private Integer roomId;

    /**
     * 老人Id
     */
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    private String oldmanName;

    /**
     * 防区位置
     */
    private String location;

}
